package com.zb.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * @Author WEN
 * @Date 2024/2/20 0020
 **/
@Data
@ApiModel("权限菜单对象")
public class AuthorVo {
    @ApiModelProperty(value = "权限菜单ID")
    private Long id;

    @ApiModelProperty(value = "类型：1-导航菜单，2-页面，3-按钮")
    private Integer type;

    @ApiModelProperty(value = "是否按钮：false-不是，true-是")
    private Boolean button;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "导航路径 ")
    private String path;

    @ApiModelProperty(value = "页面组件")
    private String component;

    @ApiModelProperty(value = "是否隐藏：false-否，true-是")
    private Boolean hidden;

    @ApiModelProperty(value = "标题名称")
    private String title;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "排序，值越小，越靠前")
    private Integer sort;

    @ApiModelProperty(value = "菜单权限状态：false-启用，true-禁用")
    private Boolean status;

    @ApiModelProperty(value = "菜单权限功能对象")
    private List<AuthorVo> authorVos;
}
